<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
    <title>原工作信息</title>
    <link rel="stylesheet" href="../../front/css/common.css">
    <script type="text/javascript" src="../../front/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../front/js/common.js"></script>
</head>
<body>
<div id="oldwork">
    <div class="ly_header header2 fixedheard">原工作信息
        <div class="ly_left goback"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right oldwoekbtn" style="font-size: 0.8em;">保存</div>
    </div>
    <div style="margin-top: 49px;">
        <div class="registered_box">
            <div class="information registered_head">
                <img src="../../front/image/leftlogo.png" alt="">原工作信息
            </div>
            <div class="information dw">
                <div class="informationname">原工作类别：</div>
                <input class="informationinput selecttext5" name="formerUnitType" th:value="${memberAuthenticationInfoVO.formerUnitType}" type="text">
                <span class="triangle dw_r color9 multi" multishow=".formerunittype">多选</span>
            </div>
            <div class="information dw">
                <div class="informationname">原工作属性：</div>
                <input class="informationinput color9 selectgender selecttext5" name="formerJobNature" th:value="${memberAuthenticationInfoVO.formerJobNature}" readonly type="text">
                <span class="triangle dw_r color9 radio" radioshow=".formerjobture">选择</span>
            </div>
        </div>
        <div class="registered_box">
            <div class="information registered_head">
                <img src="../../front/image/leftlogo.png" alt="">任职经历
            </div>
            <div class="information dw">
                <div style="padding-left: 45px;line-height: 31px;">
                    <div class="left box3"><input class="" name="jobTwoWay" value="JOBTWOWAY" type="radio">双轨制</div>
                    <div class="left box3"><input class="" name="jobTwoWay" value="ADMINISTRATION" type="radio">行政</div>
                    <div class="left box3"><input class="" name="jobTwoWay" value="TECHNIQUE" type="radio">技术</div>
                    <div style="clear: both"></div>
                </div>

            </div>
            <div class="dw hide" id="administration">
                <div class="information registered_head">
                    行政职务
                </div>
                <div class="information dw">
                    <div class="informationname">行政职务：</div>
                    <input class="informationinput color9 selectgender selecttext4" name="administrationPost" th:value="${memberAuthenticationInfoVO.administrationPost}" readonly type="text">
                    <span class="triangle dw_r color9 multi" multishow=".tration">多选</span>
                </div>
            </div>
            <div class="dw hide" id="technology">
                <div class="information registered_head">
                    技术职务
                </div>
                <div class="information dw">
                    <div class="informationname">技术职称等级：</div>
                    <input class="informationinput color9 selectgender selecttext6" name="technologyPost" th:value="${memberAuthenticationInfoVO.technologyPost}" readonly type="text">
                    <span class="triangle dw_r color9 radio" radioshow=".technology">选择</span>
                </div>
                <div class="information dw">
                    <div class="informationname">技术职称系列：</div>
                    <input class="informationinput color9 selectgender selecttext6" name="technologySeries" th:value="${memberAuthenticationInfoVO.technologySeries}" readonly type="text">
                    <span class="triangle dw_r color9 multi" multishow=".technologyseries">多选</span>
                </div>
            </div>
        </div>
        <div class="registered_box">
            <div class="information registered_head">
                <img src="../../front/image/leftlogo.png" alt="">国家认证职业资格证<span class="color6">(选填)</span>
            </div>
            <div id="certificate"></div>
            <div class="countries showhide" boxshow="#newcertificate" boxhide="#oldwork">
                <img class="imgmindw" src="../../front/image/addcountriesimg.png"style="height: 20px;top: 4px;" alt="">添加国家认证职业资格证书
            </div>
        </div>
        <div class="registered_box">
            <div class="information registered_head">
                <img src="../../front/image/leftlogo.png" alt="">培训经历</span>
            </div>
            <div class="information dw">
                <div class="informationname">学士</div>
                <input style="display: block" class="informationinput" name=""  type="text">
                <span class="triangle dw_r color9 showhide" boxshow="#training1" boxhide="#oldwork">编辑</span>
                <div class="training1"></div>
            </div>
            <div class="information dw">
                <div class="informationname">硕士<span class="color6">(选填)</span></div>
                <input style="display: block" class="informationinput" name=""  type="text">
                <span class="triangle dw_r color9 showhide" boxshow="#training2" boxhide="#oldwork">编辑</span>
                <div class="training2"></div>
            </div>
            <div class="information dw">
                <div class="informationname">博士<span class="color6">(选填)</span></div>
                <input style="display: block" class="informationinput" name=""  type="text">
                <span class="triangle dw_r color9 showhide" boxshow="#training3" boxhide="#oldwork">编辑</span>
                <div class="training3"></div>
            </div>
            <div class="information dw">
                <div class="informationname">博士后<span class="color6">(选填)</span></div>
                <input style="display: block" class="informationinput" name=""  type="text">
                <span class="triangle dw_r color9 showhide" boxshow="#training4" boxhide="#oldwork">编辑</span>
                <div class="training4"></div>
            </div>
            <div class="information dw">
                <div class="informationname">初学问者<span class="color6">(选填)</span></div>
                <input style="display: block" class="informationinput" name=""  type="text">
                <span class="triangle dw_r color9 showhide" boxshow="#training5" boxhide="#oldwork">编辑</span>
                <div class="training5"></div>
            </div>
        </div>
        <div id="mask" class="hide"></div>
        <div class="hide formerunittype drop-down">
            <div class="ly_header">原工作类别
                <div class="ly_left multino" multival="formerUnitType"><img src="../../front/image/no.png" alt=""></div>
                <div class="ly_right multiyes" multival="formerUnitType"><img src="../../front/image/yes.png" alt=""></div></div>
            <div class="insteadOf"></div>
            <ul class="multi-select multilist">
                <li>军委</li>
                <li>战区</li>
                <li>陆军</li>
                <li>空困</li>
                <li>海军</li>
                <li>战支</li>
                <li>火箭</li>
                <li>武警</li>
                <li>联勤</li>
                <li>院校</li>
                <li>院所</li>
            </ul>
        </div>
        <div class="hide formerjobture drop-down">
            <div class="ly_header">原工作属性
                <div class="ly_left radiono" radioval="formerJobNature"><img src="../../front/image/no.png" alt=""></div>
                <div class="ly_right radioyes" radioval="formerJobNature"><img src="../../front/image/yes.png" alt=""></div></div>
            <div class="insteadOf"></div>
            <ul class="selectlist radiolist">
                <li>行政</li>
                <li>行管</li>
                <li>技术</li>
                <li>管理</li>
            </ul>
        </div>
        <div class="hide tration drop-down">
            <div class="ly_header">行政职务
                <div class="ly_left multino" multival="administrationPost"> <img src="../../front/image/no.png" alt=""></div>
                <div class="ly_right multiyes" multival="administrationPost"><img src="../../front/image/yes.png" alt=""></div></div>
            <div class="insteadOf"></div>
            <ul class="multi-select multilist">
                <li>参谋</li>
                <li>干事</li>
                <li>助理</li>
                <li>科级</li>
                <li>处级</li>
                <li>局级</li>
            </ul>
        </div>
        <div class="hide technology drop-down">
            <div class="ly_header">技术职称等级
                <div class="ly_left radiono" radioval="technologyPost"><img src="../../front/image/no.png" alt=""></div>
                <div class="ly_right radioyes" radioval="technologyPost"><img src="../../front/image/yes.png" alt=""></div></div>
            <div class="insteadOf"></div>
            <ul class="selectlist radiolist">
                <li>初级职称</li>
                <li>中级职称</li>
                <li>高级职称</li>
            </ul>
        </div>
        <div class="hide technologyseries drop-down">
            <div class="ly_header">技术职称系列
                <div class="ly_left multino" multival="technologySeries"><img src="../../front/image/no.png" alt=""></div>
                <div class="ly_right multiyes" multival="technologySeries"><img src="../../front/image/yes.png" alt=""></div></div>
            <div class="insteadOf"></div>
            <ul class="multi-select multilist">
                <li>工程系列</li>
                <li>研究系列</li>
                <li>教育系列</li>
                <li>体疗系列</li>
            </ul>
        </div>
    </div>
</div>
<div id="training1" class="hide">
    <div class="ly_header header2 fixedheard">培训经历
        <div class="ly_left showhide oldtrain" boxshow="#oldwork" boxhide="#training1"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addtrain" boxshow="#oldwork" boxhide="#training1" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-top: 49px;">
        <div class="information dw">
            <div class="informationname color9">学士</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="bachelorMajorYxOne"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="bachelorMajorZyOne"  type="text">
        </div>
    </div>
    <div class="registered_box" style="margin-top: 5px;">
        <div class="information dw">
            <div class="informationname color9">学士</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="bachelorMajorYxTwo"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="bachelorMajorZyTwo"  type="text">
        </div>
    </div>
</div>
<div id="training2" class="hide">
    <div class="ly_header header2 fixedheard">培训经历
        <div class="ly_left showhide oldtrain" boxshow="#oldwork" boxhide="#training2"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addtrain" boxshow="#oldwork" boxhide="#training2" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-top: 49px;">
        <div class="information dw">
            <div class="informationname color9">硕士</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="masterMajorYxOne"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="masterMajorZyOne"  type="text">
        </div>
    </div>
    <div class="registered_box" style="margin-top: 5px;">
        <div class="information dw">
            <div class="informationname color9">硕士</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="masterMajorYxTwo"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="masterMajorZyTwo"  type="text">
        </div>
    </div>
</div>
<div id="training3" class="hide">
    <div class="ly_header header2 fixedheard">培训经历
        <div class="ly_left showhide oldtrain" boxshow="#oldwork" boxhide="#training3"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addtrain" boxshow="#oldwork" boxhide="#training3" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-top: 49px;">
        <div class="information dw">
            <div class="informationname color9">博士</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="doctorMajorYxOne"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="doctorMajorZyOne"  type="text">
        </div>
    </div>
    <div class="registered_box" style="margin-top: 5px;">
        <div class="information dw">
            <div class="informationname color9">博士</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="doctorMajorYxTwo"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="doctorMajorZyTwo"  type="text">
        </div>
    </div>
</div>
<div id="training4" class="hide">
    <div class="ly_header header2 fixedheard">培训经历
        <div class="ly_left showhide oldtrain" boxshow="#oldwork" boxhide="#training4"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addtrain" boxshow="#oldwork" boxhide="#training4" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-top: 49px;">
        <div class="information dw">
            <div class="informationname color9">博士后</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="postDoctorMajorYxOne"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="postDoctorMajorZyOne"  type="text">
        </div>
    </div>
    <div class="registered_box" style="margin-top: 5px;">
        <div class="information dw">
            <div class="informationname color9">博士后</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="postDoctorMajorYxTwo"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="postDoctorMajorZyTwo"  type="text">
        </div>
    </div>
</div>
<div id="training5" class="hide">
    <div class="ly_header header2 fixedheard">培训经历
        <div class="ly_left showhide oldtrain" boxshow="#oldwork" boxhide="#training5"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addtrain" boxshow="#oldwork" boxhide="#training5" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-top: 49px;">
        <div class="information dw">
            <div class="informationname color9">访问学者</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="visitingScholarMajorYxOne"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="visitingScholarMajorZyOne"  type="text">
        </div>
    </div>
    <div class="registered_box" style="margin-top: 5px;">
        <div class="information dw">
            <div class="informationname color9">访问学者</div>
            <input class="informationinput" name="" readonly type="text">
        </div>
        <div class="information dw">
            <div class="informationname">学院：</div>
            <input class="informationinput" name="visitingScholarMajorYxTwo"  type="text">
        </div>
        <div class="information dw">
            <div class="informationname">专业：</div>
            <input class="informationinput" name="visitingScholarMajorZyTwo"  type="text">
        </div>
    </div>
</div>
<div id="newcertificate" class="hide">
    <div class="ly_header header2" style="z-index: 6">国家认证职业资格证书
        <div class="ly_left showhide" boxshow="#oldwork" boxhide="#newcertificate"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addcertificate" boxshow="#oldwork" boxhide="#newcertificate" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-bottom: 5px">
        <div class="information dw" style="margin-bottom: 10px">
            <div class="informationname">证书名称：</div>
            <input class="informationinput text5" name="newcertificatename"  type="text">
        </div>
    </div>
    <div class="certificate">
        <div style="font-size: 0.9em;line-height: 2;"><img class="imgmindw" src="../../front/image/professionalicon.png" alt="">国家认证职业资格证书</div>
        <div class="dw">
            <img src="../../front/image/professionalbtn.png" style="height:169px"  alt="">
            <input type="file" name="newcertificate" imgaddress="" class="dw_r certificateimg">
        </div>
        <div class="format">只支持png/jpg格式</div>
        <div class="countries delfilecertificate" style="" >
            删除
        </div>
    </div>
</div>
<div id="oldcertificate" class="hide">
    <div class="ly_header header2" style="z-index: 6">国家认证职业资格证书
        <div class="ly_left showhide oldcertificate" boxshow="#oldwork" boxhide="#oldcertificate"><img src="../../front/image/gobackbai.png" alt=""></div>
        <div class="ly_right showhide addcertificate" boxshow="#oldwork" boxhide="#oldcertificate" style="font-size: 0.8em;">保存</div>
    </div>
    <div class="registered_box" style="margin-bottom: 5px">
        <div class="information dw" style="margin-bottom: 10px">
            <div class="informationname">证书名称：</div>
            <input class="informationinput text5" name="oldcertificatename"  type="text">
        </div>
    </div>
    <div class="certificate">
        <div style="font-size: 0.9em;line-height: 2;"><img class="imgmindw" src="../../front/image/professionalicon.png" alt="">国家认证职业资格证书</div>
        <div class="dw">
            <img class="oldimg" src="../../front/image/professionalbtn.png" style="height:169px" alt="">
            <input type="file" name="oldcertificate" imgaddress="" class="dw_r certificateimg">
        </div>
        <div class="format">只支持png/jpg格式</div>
        <div class="countries showhide" boxshow="#oldwork" boxhide="#oldcertificate" style="" >
            删除
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="../../front/js/information.js"></script>
<script>
    /*<![CDATA[*/
    ctxPath = /*[[@{/}]]*/ '';
    /*]]>*/
    function train(name1,name2){
        if(!name1||!name2){
            var temp='';
        }else{
            var temp='<div class="degreelist" style="line-height: 2.5">'
                    +'<div class="color9">院校：'+name1+'</div>'
                    +'<div class="color9">专业：'+name2+'</div>'
                +'</div>'
        }
        return temp;
    }
    function certificate(name,url){
        if(!name||!url){
            var temp='';
        }else{
            var temp='<div class="information certificatelist dw">'
                    +'<div class="informationname">'+name+'</div>'
                    +'<input class="informationinput" style="color: transparent;" name="" readonly value="'+url+'" type="text">'
                    +'<span class="triangle dw_r color9 showhide delcertificate" boxshow="#oldcertificate" boxhide="#oldwork">编辑</span>'
                 +'</div>'
        }
        return temp;
    }
    $(document).on("click",".addtrain",function(){
        var ele=$(this).parent().parent().attr("id")
        var name10=$(this).parent().parent().find("input").eq(1).val();
        var name11=$(this).parent().parent().find("input").eq(2).val();
        var name20=$(this).parent().parent().find("input").eq(4).val();
        var name21=$(this).parent().parent().find("input").eq(5).val();
        var temp=train(name10,name11)+train(name20,name21);
        $("."+ele).html(temp);
        if(!(!name10||!name11)){
            $(this).parent().parent().find("input").eq(1).attr("old",name10);
            $(this).parent().parent().find("input").eq(2).attr("old",name11);
        }else{
            $(this).parent().parent().find("input").eq(1).attr("old","");
            $(this).parent().parent().find("input").eq(2).attr("old","");
            $(this).parent().parent().find("input").eq(1).val("");
            $(this).parent().parent().find("input").eq(2).val("");
        }
        if(!(!name20||!name21)){
            $(this).parent().parent().find("input").eq(4).attr("old",name20);
            $(this).parent().parent().find("input").eq(5).attr("old",name21);
        }else{
            $(this).parent().parent().find("input").eq(4).attr("old","");
            $(this).parent().parent().find("input").eq(5).attr("old","");
            $(this).parent().parent().find("input").eq(4).val("");
            $(this).parent().parent().find("input").eq(5).val("");
        }
    })
    $(document).on("click",".oldtrain",function(){
        var name10=$(this).parent().parent().find("input").eq(1).attr("old");
        var name11=$(this).parent().parent().find("input").eq(2).attr("old");
        var name20=$(this).parent().parent().find("input").eq(4).attr("old");
        var name21=$(this).parent().parent().find("input").eq(5).attr("old");
        $(this).parent().parent().find("input").eq(1).val(name10);
        $(this).parent().parent().find("input").eq(2).val(name11);
        $(this).parent().parent().find("input").eq(4).val(name20);
        $(this).parent().parent().find("input").eq(5).val(name21);
    })
    $(document).on("click",".addcertificate",function(){
        var url=$(this).parent().parent().find(".certificateimg").attr("imgaddress");
        var name=$(this).parent().parent().find("input.text5").val();
        var temp=certificate(name,url);
        $("#certificate").before(temp);
        $(this).parent().parent().find(".certificateimg").siblings("img").attr("src","../../front/image/professionalbtn.png");
        $(this).parent().parent().find(".certificateimg").attr("imgaddress","");
        $(this).parent().parent().find("input.text5").val("");
        var obj=$('input.certificateimg');
        obj.val("");
        obj.outerHTML=obj.outerHTML;

    })
    $(document).on("click",".oldcertificate",function(){
        var url=$(".oldimg").attr("old");
        var name=$("input[name='oldcertificatename']").attr("old");
        var temp=certificate(name,url);
        $("#certificate").before(temp);
    })
    $(document).on("click",".delcertificate",function(){
        var name=$(this).siblings(".informationname").text();
        var url=$(this).siblings("input").val();
        $("input[name='oldcertificatename']").val(name).attr("old",name);
        $("#oldcertificate .certificateimg").attr("imgaddress","url")
        $(".oldimg").attr("src","../../"+url).attr("old",url);
        $(this).parent().remove()
    })
    $(document).on("change",".certificateimg",function(){
        var that=$(this)
        var formdata=new FormData();
        var val=$(this)[0].files[0];
        formdata.append("file",val)
        $.ajax({
             type: "post",
             url: ctxPath+"../../common/uploadMemberImage.action",
             data: formdata,
             dataType: "json",
             processData : false,
             contentType : false,
             cache: false,
             success: function(data){
                $(that).siblings("img").attr("src","../../"+data.result.url);
                $(that).attr("imgaddress",data.result.url)
             }
         });
    })
    $(document).on("click",".delfilecertificate",function(){
        $(this).parent().parent().find(".certificateimg").siblings("img").attr("src","../../front/image/professionalbtn.png");
        $(this).parent().parent().find(".certificateimg").attr("imgaddress","");
        $(this).parent().parent().find("input.text5").val("");
        var obj=$('input.certificateimg');
        obj.val("");
        obj.outerHTML=obj.outerHTML;
    })
    $(document).on("click",".oldwoekbtn",function(){
        var data={};
        data.formerUnitType=$("input[name='formerUnitType']").val();
        data.formerJobNature=$("input[name='formerJobNature']").val();
        data.jobTwoWay=$("input[name='jobTwoWay']").val();
        if(data.jobTwoWay=="JOBTWOWAY"){
            data.administrationPost=$("input[name='administrationPost']").val();
            data.technologyPost=$("input[name='technologyPost']").val();
            data.technologySeries=$("input[name='technologySeries']").val();
        }else if(data.jobTwoWay=="ADMINISTRATION"){
            data.administrationPost=$("input[name='administrationPost']").val();
        }else if(data.jobTwoWay=="TECHNIQUE"){
            data.technologyPost=$("input[name='technologyPost']").val();
            data.technologySeries=$("input[name='technologySeries']").val();
        }
        var certificatelist=[];
        $(".certificatelist").each(function(){
            var img=new Object();
            img.name=$(this).find(".informationname").text();
            img.url=$(this).find(".informationinput").val();
            certificatelist.push(img);
        })
        data.imageList=JSON.stringify(certificatelist);
        data.bachelorMajorYxOne=$("input[name='bachelorMajorYxOne']").val();
        data.bachelorMajorYxTwo=$("input[name='bachelorMajorYxTwo']").val();
        data.bachelorMajorZyOne=$("input[name='bachelorMajorZyOne']").val();
        data.bachelorMajorZyTwo=$("input[name='bachelorMajorZyTwo']").val();

        data.masterMajorYxOne=$("input[name='masterMajorYxOne']").val();
        data.masterMajorYxTwo=$("input[name='masterMajorYxTwo']").val();
        data.masterMajorZyOne=$("input[name='masterMajorZyOne']").val();
        data.masterMajorZyTwo=$("input[name='masterMajorZyTwo']").val();

        data.doctorMajorYxOne=$("input[name='doctorMajorYxOne']").val();
        data.doctorMajorYxTwo=$("input[name='doctorMajorYxTwo']").val();
        data.doctorMajorZyOne=$("input[name='doctorMajorZyOne']").val();
        data.doctorMajorZyTwo=$("input[name='doctorMajorZyTwo']").val();

        data.postDoctorMajorYxOne=$("input[name='postDoctorMajorYxOne']").val();
        data.postDoctorMajorYxTwo=$("input[name='postDoctorMajorYxTwo']").val();
        data.postDoctorMajorZyOne=$("input[name='postDoctorMajorZyOne']").val();
        data.postDoctorMajorZyTwo=$("input[name='postDoctorMajorZyTwo']").val();

        data.visitingScholarMajorYxOne=$("input[name='visitingScholarMajorYxOne']").val();
        data.visitingScholarMajorYxTwo=$("input[name='visitingScholarMajorYxTwo']").val();
        data.visitingScholarMajorZyOne=$("input[name='visitingScholarMajorZyOne']").val();
        data.visitingScholarMajorZyTwo=$("input[name='visitingScholarMajorZyTwo']").val();

        data.infoType="PRE_WORK_INFO";

        $.ajax({
            url: "/tiance/front/memberCenter/applyMemberAuth.action",
            type: "post",
            data: data, //发送数据,
            dataType: "json",
            async: false,
             success: function(data){
                if(data.success){
                    window.location.href='toApplyMemberAuth.action';
                }else{
                    alert('提交是失败！')
                }
             },
             error:function(){
                alert()
             }
         });
    })
</script>
</html>